var a = new Array();
a[0] = 0;
a['one'] = 1;
a['two'] = 2;
a['three'] = 3;

for (var k in a) {
    if (a.hasOwnProperty(k)) {
        print('key is: ' + k + ', value is: ' + a[k]);
    }
}